surface: Don't dispose the frame clock prematurely
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 May 2019 13:19:12 +0000 (13:19 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:16 +0000 (20:25 +0000)
commitc2b9a12f6f47db6c692c952b274fd13a8bf0398b
treea1cac824b0de2404c3ef7c459fb6cd6ee4065937
parent8f291be8c6414fd8e3bff97cc6a963e29286d4ef
surface: Don't dispose the frame clock prematurely

Since we are now sharing frame clocks with multiple
surfaces, we can no longer dispose them unconditionally
when a surface goes away. Only do it if we are a
toplevel (without parent).

This was showing up as criticals on exit when opening
and closing any popover in widget factory.
gdk/gdksurface.c